set -e
dir=$(dirname $(readlink -f "$0"))
cd "${dir}" || exit 1

rm -rf build
cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=YES
cmake --build build 
cd build && ctest
